package io.openkunlun.examples.springboot.api;

import io.openkunlun.javarpc.RpcCall;

import java.util.List;
import java.util.Map;

@io.openkunlun.javarpc.RpcService(app = "rpc-demo", service = "RpcService")
public interface RpcService {

    @RpcCall(method = "rpc")
    RpcResponse rpc(RpcRequest request);

    @RpcCall(method = "list")
    RpcResponse list(List<RpcRequest> request);

    @RpcCall(method = "abc")
    void multi(String name, int age);

    List<RpcResponse> map(Map<String, List<RpcRequest>> request);

    void error();

}
